package com.ruoyi.system.service;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.system.domain.CamsRecord;

/**
 * 记录Service接口
 *
 * @author anskory
 * @date 2024-04-24
 */
public interface ICamsRecordService extends IService<CamsRecord>{
    /**
     * 查询记录列表
     *
     * @param camsRecord 记录
     * @return 记录集合
     */
    public List<CamsRecord> selectCamsRecordList(CamsRecord camsRecord);

    //新增或修改历史记录
    boolean addOrUpdateRecord(String activityId, Integer recordType);

    //删除记录
    boolean removeRecord(String activityId, Integer recordType);

    //查询历史记录
    List<CamsRecord> historyList(String keyword);

    List<CamsRecord> filterRecordsByType(List<CamsRecord> records, int type);

    boolean isRecordOwnedByUser(List<CamsRecord> records);
}
